package com.example.applicationjet.lifecycle;

import android.util.Log;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

public class AppObserver implements LifecycleObserver {
 private String TAG = "Lifecycle_Test";

 @OnLifecycleEvent(Lifecycle.Event.ON_START)
 public void start() {
  Log.i(TAG, "app: start");
 }

 @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
 public void stop() {
  Log.i(TAG, "app: stop");
 }
}
